<template>
    <div id="ranking-board" style="height:500px">
      <div class="ranking-board-title">投入品库存</div>
      <dv-scroll-ranking-board :config="data" style="width:100%;height:500px"/>
    </div>   
</template>

<script>
import { mapState } from 'vuex'
export default {
  name: 'RankingBoard',
  computed: {
    ...mapState({
      data: state => state.Consumpt.Inputinventory
    })
  }
}
</script>

<style lang="scss">
#ranking-board {
  width: 20%;
  box-shadow: 0 0 3px blue;
  display: flex;
  flex-direction: column;
  background-color: rgba(6, 30, 93, 0.5);
  border-top: 2px solid rgba(1, 153, 209, .5);
  box-sizing: border-box;
  padding: 0px 30px;

  .ranking-board-title {
    color: white;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    font-size: 18px;
  }

  .dv-scroll-ranking-board {
    flex: 10;
  }
}
</style>
